from ML.ml__practice.ch3.ch3 import *

url = r'C:\Users\bgape\Desktop\computerS\machinelearninginaction\Ch03\lenses.txt'
f = open(url)
datas = [line.strip().split('\t') for line in f.readlines()]
labels = ['age','prescript','astigmatic','tearRate']
lenTree = createTree(datas,labels[:])
print(lenTree)
createPlot(lenTree)